package com.crrc.dataparse.entity;

import lombok.Data;

/*
@author XX
@since 2025-09-05 10:11
*/
@Data
public class ErrorResult {
    private int code;
    private String msg;

    public static ErrorResult fail( String msg){

        return fail(400,msg);
    }

    public static ErrorResult fail( int code,String msg){
        ErrorResult r = new ErrorResult();
        r.setCode(400);
        r.setMsg(msg);

        return r;
    }
}
